package com.mhkj.revise.plan.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mhkj.revise.plan.service.PlanService;
import com.mics.core.common.componet.ResponseMessage;
import com.mics.core.system.base.entity.BaseDomain;

/**
 * 计划
 * @author mics
 * @date 2018年8月30日
 * @version 1.0
 */
@Controller
@RequestMapping("/plans")
public class PlansController extends BaseDomain{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 803397193793910138L;
	@Resource
	private PlanService planService;
	
	@RequestMapping("/del")
	@ResponseBody
	public ResponseMessage delPlan(long id){
		planService.deletePlan(id);
		return ResponseMessage.createMessage(true, "删除计划成功");
	}

}
